
export default {
    namespaced: true,
    state: {
        pageNum: 1,
        pageSize: 20,
        pageOptionsList: [10, 20, 30, 40, 50, 60],
        pageOptionsBigList: [10, 20, 50, 100, 200],
	    pageOptionsSuperBigList: [10, 20, 50, 100, 200, 500],
        tableColumnSettingList: []
    },
    mutations: {
        updatePageSize(state, payload) {
            state.pageSize = payload;
        },
        updatePageOptionsList(state, payload) {
            state.pageOptionsList = payload;
        },
        updatePageOptionsBigList(state, payload) {
            state.pageOptionsBigList = payload;
        },
	    updatePageOptionsSuperBigList(state, payload) {
		    state.pageOptionsSuperBigList = payload;
	    },
        updateTableColumnSettingList(state, payload) {
            state.tableColumnSettingList = payload;
        }
    },
    actions: {
        updatePageSize({ commit }, pageSize) {
            commit('updatePageSize', pageSize);
        },
        updatePageOptionsList({ commit }, pageOptionsList) {
            commit('updatePageOptionsList', pageOptionsList);
        },
        updatePageOptionsBigList({ commit }, pageOptionsBigList) {
            commit('updatePageOptionsBigList', pageOptionsBigList);
        },
	    updatePageOptionsSuperBigList({ commit }, pageOptionsSuperBigList) {
		    commit('updatePageOptionsSuperBigList', pageOptionsSuperBigList);
	    },
        updateTableColumnSettingList({ commit }, tableColumnSettingList) {
            commit('updateTableColumnSettingList', tableColumnSettingList);
        },
        getAllTableColumnSetting({ commit }) {
            commit('updateTableColumnSettingList', response.data.returnData);
        }
    }
};
